import allure
from page_object.searchpage import SearchPage
import pytest

@pytest.fixture(scope="class", autouse=True)
def go_to_map(drivers):
    global map
    search = SearchPage(drivers)
    map = search.go_to_map()
    map = map(drivers)

@allure.feature("测试地图模块")
@pytest.mark.skip
class TestMap:
    @allure.story("地图搜索合肥")
    def test_map(self):
        """地图搜索合肥"""
        map.map_query("合肥")

    def test_map_2(self):
        """地图搜索合肥"""
        map.map_query("合肥2")
